﻿using System;

namespace TestMap2
{
    class GpsPoint
    {
        public double Y;
        public double X;

        public GpsPoint(double Y, double X)
        {
            this.Y = Y;
            this.X = X;
        }

        public string getCoordinates()
        {
            return Y + "," + X;
        }

        public GpsPoint getCenterGpsPoint(GpsPoint another)
        {
            return new GpsPoint((this.Y + another.Y) / 2,(this.X + another.X) / 2);
        }

        public GpsPoint clone()
        {
            return new GpsPoint(Y, X);
        }
    }
}
